

package com.hazelcast.internal.services;

import com.hazelcast.instance.LocalInstanceStats;

import java.util.Map;

/**
 * A service implementing this interface provides local instance statistics.
 *
 * @param <T> type of returned
 */
public interface StatisticsAwareService<T extends LocalInstanceStats> {
    /**
     * Return the service statistics for the local instance.
     *
     * @return the statistics, grouped by distributed object name
     */
    Map<String, T> getStats();
}
